//mainscene,开始界面
#ifndef MAINSCENE_H
#define MAINSCENE_H
#define SCENE_WIDTH 800
#define SCENE_HEIGHT 900
#include"stock.h"

/*********/
extern int ball_skin;
/********/
QT_BEGIN_NAMESPACE
namespace Ui { class MainScene; }
QT_END_NAMESPACE

class MainScene : public QWidget
{
    Q_OBJECT

public:
   MainScene(QWidget *parent = nullptr);
   ~MainScene();

   int py;
   void reshow();
   bool music_on;

private:
   Ui::MainScene *ui;
   void inite_scene();

protected:
   void closeEvent(QCloseEvent *event);
   void paintEvent(QPaintEvent *);

signals:
   void showsetscene();
   void setscene_out();
   void showhelper();
   void showballskin();

private slots:
   void on_startButton_clicked();
   void on_quitButton_clicked();
   void on_setButton_clicked();
   void on_music_clicked();
   void on_change_clicked();
};
#endif // MAINSCENE_H
